package com.Emotion.emotion.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.Emotion.common.annotation.Excel;
import com.Emotion.common.core.domain.BaseEntity;

/**
 * 情绪检测记录对象 tb_emotion_records
 * 
 * @author wangtao
 * @date 2025-05-08
 */
public class EmotionRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long emotionId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 部门ID */
    private Long deptId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /**部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 检测时间戳 */
    @Excel(name = "检测时间戳")
    private Long timestamp;

    /** 各情绪百分比 */
    @Excel(name = "各情绪百分比")
    private String emotionPercentage;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setEmotionId(Long emotionId) 
    {
        this.emotionId = emotionId;
    }

    public Long getEmotionId() 
    {
        return emotionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTimestamp(Long timestamp) 
    {
        this.timestamp = timestamp;
    }

    public Long getTimestamp() 
    {
        return timestamp;
    }

    public void setEmotionPercentage(String emotionPercentage) 
    {
        this.emotionPercentage = emotionPercentage;
    }

    public String getEmotionPercentage() 
    {
        return emotionPercentage;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("emotionId", getEmotionId())
            .append("userId", getUserId())
            .append("timestamp", getTimestamp())
            .append("emotionPercentage", getEmotionPercentage())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
}
